﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PrivilegeList.aspx.cs" Inherits="CPPEI.Coolzon.ManagementCenter.PrivilegeList" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>权限列表</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="position: absolute; left: 20%">
        <asp:Button Text ="新增" ID="Add" OnClick="Add_Click" runat="server"/>
        <asp:GridView ID="gvUserList" runat="server" AutoGenerateColumns="False" OnRowEditing="gvPrivilegeList_RowEditing" Width="100%" OnRowDeleting="gvPrivilegeList_RowDeleting">
            <Columns>
                <asp:TemplateField HeaderText="Id" Visible="False">
                    <ItemTemplate>
                        <asp:Label ID="lblId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编号">
                    <ItemTemplate>
          <%# DataBinder.Eval(Container.DataItem, "Code") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="名称">
                    <ItemTemplate>
          <%# DataBinder.Eval(Container.DataItem, "Name") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="类型">
                    <ItemTemplate>
          <%# DataBinder.Eval(Container.DataItem, "Type") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                 <ItemTemplate>
                   <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                                                            Text="编辑"></asp:LinkButton>
                   <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="Delete"
                                                            Text="删除" OnClientClick ="return confirm('你确定要删除吗？')"></asp:LinkButton>
                  </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
